#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int iq = 0;
	while (scanf("%d",&iq )== 1) {
		if (iq >= 140)
			printf("666");
	}
	return 0;
}